package com.byb.server.service.mapper;

import com.byb.server.domain.*;
import com.byb.server.service.dto.TypeOfCaseDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity TypeOfCase and its DTO TypeOfCaseDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface TypeOfCaseMapper extends EntityMapper <TypeOfCaseDTO, TypeOfCase> {
    
    
    default TypeOfCase fromId(Long id) {
        if (id == null) {
            return null;
        }
        TypeOfCase typeOfCase = new TypeOfCase();
        typeOfCase.setId(id);
        return typeOfCase;
    }
}
